package com.biz.primus.model.promotion.vo;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 折扣率Vo
 *
 * @author david-liu
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DiscountRateVo implements Serializable {
    private static final long serialVersionUID = 1068583312827783976L;

    @ApiModelProperty(value = "折扣率条件")
    private Integer rateCondition;

    @ApiModelProperty(value = "折扣率")
    private BigDecimal discountRate;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
